<?php
//require dirname(__FILE__) . "/config/functions.php";

$content = mysql_query("SELECT `value` FROM `option` where `key` = 'footer_page' ");
$content = mysql_fetch_assoc($content);

$sitename = mysql_query("SELECT `value` FROM `option` where `key` = 'site_name' ");
$sitename = mysql_fetch_assoc($sitename);


$content = str_replace("{site_name}", $sitename['value'], $content);
$content = str_replace("{date}", date("Y"), $content);
echo $content['value'];
?>